public class MainClass3 {
    public static void printArray(Integer[] inputArray){
        for(Integer element:inputArray){
            System.out.printf("%s",element);
            System.out.println();
        }
    }
    public static void printArray(Double[] inputArray){
        for(Double element:inputArray){
            System.out.printf("%s",element);
            System.out.println();
        }
    }
    public static void main(String[] args){
        Integer[] integerArray = {1,2,3,4,5};
        Double[] doubleArray = {1.1,2.2,3.3,4.4};
        Character[] characterArray = {'H','E','L','L','O'};
        System.out.println("输出整形数组：");
        printArray(integerArray);
        System.out.println("\n输出双精度数组：");
        System.out.println(doubleArray);
        System.out.println("\n输出字符数组：");
        System.out.println(characterArray);
    }
}
